
export const isObject = (value) =>  {
  return value != null && (typeof value === 'object');
}

export const isobject = (value) =>  {
  return value != null && (typeof value === 'object') && !Array.isArray(value)
}

export const isFunction = (fn) => typeof fn === 'function'

export const filterKeyNull = (obj = {}) => Object.fromEntries(Object.entries(obj).filter(item => !!item[1]))

export const getOptionLabel = (options, id, key) => options.find(val => val[key] == id) || {}